import Index from "../pages/views/Index";
import ViewFiles from "../pages/views/ViewFiles";
import AddFile from "../pages/views/AddFile";
import UpdateFile from "../pages/views/UpdateFile";
import CheckFile from "../pages/views/CheckFile";
import ViewUsers from "../pages/views/ViewUsers";
import UpdateUser from "../pages/views/UpdateUser";

/* 需要权限判断的路由 */
const dynamicRoutes = [{
    path: '/',
    component: Index,
    name: 'Index',
    redirect: "/",
    meta: {
      name: '量表管理',
      icon: 'icon-order-manage'
    },
    children: [{
        path: '/ViewFiles',
        name: '/ViewFiles',
        component: ViewFiles,
        show: true,
        meta: {
          name: '查询量表',
          icon: 'icon-home'
        }
      },
      {
        path: '/AddFile',
        name: 'AddFile',
        component: AddFile,
        show: true,
        meta: {
          name: '添加量表',
          icon: 'icon-product-manage'
        }
      }
    ]
  },
  {
    path: '/UpdateFile',
    name: '/UpdateFile',
    component: UpdateFile,
    show: false
  },
  {
    path: '/CheckFile',
    name: '/CheckFile',
    component: CheckFile,
  },
  {
    path: '/ViewUsers',
    name: 'ViewUsers',
    component: ViewUsers,
  },
  {
    path: '/UpdateUser',
    name: 'UpdateUser',
    component: UpdateUser,
  }
]

export default dynamicRoutes